<?php
/**
 * @Name: RoleNodeRequest.php
 * @Author: yashuai<1762910894@qq.com>
 * @Desc: 角色关联菜单
 */

namespace app\common\requests\rbac;

use app\common\requests\PackingRequest;

class RoleNodeRequest extends PackingRequest
{

    public function rules()
    {
        return [
            'RoleID' => 'require|integer',
            'NodeID' => 'require|array',
        ];
    }

    public function message()
    {
        return [
            'RoleID.require' => '缺少记录ID参数',
            'RoleID.integer'  => '记录ID参数类型异常',
            'NodeID.require' => '菜单节点数据不能为空',
            'NodeID.array'    => '菜单节点数据类型异常',

        ];
    }

}
